<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Comment extends Model
{
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'content','comment_consumer_id','twitter_id','read_status'
    ];

    public function replies(){
        return $this->hasMany(Reply::class);
    }

    public function consumer(){
        return $this->belongsTo(Consumer::class,'comment_consumer_id');
    }
}
